projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8296bf7
)
Revert "Bug 590959 - Set child_has_focus flag properly"
author
Xan Lopez
<xan@gnome.org>
Fri, 7 Aug 2009 12:39:49 +0000
(15:39 +0300)
committer
Xan Lopez
<xan@gnome.org>
Fri, 7 Aug 2009 12:51:17 +0000
(15:51 +0300)
This reverts commit
6e0af6c25225440263792a3cbecd8f4301e3def5
.
The patch seems to break focus handling in some applications, like
Epiphany.
gtk/gtknotebook.c
patch
|
blob
|
history
diff --git
a/gtk/gtknotebook.c
b/gtk/gtknotebook.c
index a349add78677fd4c1db6221cd5cfb4d777226ebb..aa1a5ade06884a4616ad88261882b06ed8440003 100644
(file)
--- a/
gtk/gtknotebook.c
+++ b/
gtk/gtknotebook.c
@@
-3094,6
+3094,8
@@
static gint
gtk_notebook_focus_in (GtkWidget *widget,
GdkEventFocus *event)
{
+ GTK_NOTEBOOK (widget)->child_has_focus = FALSE;
+
gtk_notebook_redraw_tabs (GTK_NOTEBOOK (widget));
return FALSE;
@@
-3976,8
+3978,6
@@
gtk_notebook_set_focus_child (GtkContainer *container,
}
}
}
- else
- notebook->child_has_focus = FALSE;
GTK_CONTAINER_CLASS (gtk_notebook_parent_class)->set_focus_child (container, child);
}